package com.shj.service;

import com.shj.entity.MenuTreeNode;
import com.shj.entity.SysMenu;

import java.util.List;

/**
 * @Description TODO 权限树业务接口类
 * @author songhuajian
 * @date 2020/5/2 23:41
 **/
public interface MenuTreeService {
    /**
     * @Description 生成权限树
     * @author songhuajian
     * @date 2020/5/3 0:05
     */
    MenuTreeNode tree(SysMenu sysMenu, String roleId, boolean recursive);

    List<MenuTreeNode> getChildNodeList(List<MenuTreeNode> nodeList);

    void visit(MenuTreeNode node, List<MenuTreeNode> nodes);

    List<MenuTreeNode> tree(String treeId, String roleId);
}
